package com.emall.ware;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.http.codec.ServerCodecConfigurer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author YuanShijia
 * @version 1.0.0
 * @ClassName EmallWareApplication.java
 * @Description TODO
 * @createTime 2020年04月04日 16:55:00
 */
@EnableFeignClients
@EnableTransactionManagement
@MapperScan("com.emall.ware.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class EmallWareApplication {
    public static void main(String[] args) {
        SpringApplication.run(EmallWareApplication.class, args);
    }
    @Bean
    public ServerCodecConfigurer serverCodecConfigurer() {
        return ServerCodecConfigurer.create();
    }
}
